<template>
	<view class="uni-flex uni-flex-item uni-column">

		<view class="uni-list">
			<block v-for="(item,index) in list" :key="index">
				<view class="uni-list-cell" @tap="openWindow(item.url)">
					<view class="uni-list-cell-navigate uni-navigate-right">
						{{item.title}}
					</view>
				</view>
			</block>
		</view>
	</view>
</template>

<script>
	export default {
		data: {
			list: [{
					url:'product-list/product-list-v1',
					title: '产品列表 v1',
					tag: ''
				},{
					url:'product-list/product-list-v2',
					title: '产品列表 v2',
					tag: ''
				},{
					url:'product-list/product-list-v3',
					title: '产品列表 v3',
					tag: ''
				},
				{
					url: 'load-more',
					title: '上拉加载',
					tag: '组件'
				}
			]

		},
		computed: {

		},
		methods: {
			openWindow: url => {
				uni.navigateTo({
					url: url,
				})
			}
		},
		onLoad: function (e) {
			uni.setNavigationBarTitle({
				title: '演示程序',
			});
			
			console.log(JSON.stringify(e));
		}
	}
</script>

<style>

</style>
